<template>
  <div>
    <h1>test组件</h1>
    <button @click="push('d')">按钮</button>
    <ul>
      <li v-for="(item, index) in arr" :key="index">{{ item }}</li>
    </ul>
  </div>
</template>

<script>
import { mapState, mapMutations } from 'vuex'
export default {
  computed: {
    ...mapState('ls-test', ['arr']),
  },
  methods: {
    ...mapMutations('ls-test', ['push']),
  },
}
</script>

<style></style>
